package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.positiontype.BasePositionTypePageRequest;
import com.mes.cloud.entity.BasePositionType;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 岗位类型
 *
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-08-08 15:16:52
 */
public interface BasePositionTypeDao extends SelectByIdsMapper<BasePositionType>, Mapper<BasePositionType>{

    /**
     * 批量启用禁用
     * @param enableFlag
     * @param ids
     * @param updateDateStr
     * @param
     * @return
     */
    int batchEnableFlag(@Param("enableFlag") String enableFlag,
                        @Param("list") List<String> ids,
                        @Param("updateDateStr") String updateDateStr,
                        @Param("employeeNo") String employeeNo,
                        @Param("employeeName") String employeeName);

    /**
     * 查询列表
     * @param pageRequest
     * @return
     */
    List<BasePositionType> list(BasePositionTypePageRequest pageRequest);
}
